<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单查询</title>
</head>
<body>
	<!-- 用户输入订单信息 -->
	<h1>订单查询</h1>
	<form action="order!find">
	请输入您的订单号:<input type="text" name="order.id">
	<input type="submit" value="查询">

	<!-- 展示订单信息 -->
	<s:if test="order != null">
		<hr/>
		<!-- 个人信息 -->
		收货人：<s:property value="order.name"/> <br/>
		收货地址：<s:property value="order.address"/>
		<hr color="green" size="1px"/>
		<!-- 商品信息 -->
		<table>
			<tr>
				<td width="150px">名称</td>
				<td width="50px">价格</td>
				<td>数量</td>
			</tr>
			<s:iterator value="order.details">
				<tr>
					<td><s:property value="goods.name"/></td>
					<td><s:property value="goods.price"/></td>
					<td><s:property value="amount"/></td>
				</tr>	
			</s:iterator>	
		</table>
	</s:if>
	</form>
</body>
</html>